package com.admin_springboot.adminspringboot.mapper;

import com.admin_springboot.adminspringboot.entity.Menu;
import com.admin_springboot.adminspringboot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LoginMapper {
    /**
     * 登录
     * @param user user对象
     * @return user对象
     */
    List<User> login(User user);
    /**
     * 查询菜单
     * @return user对象
     */
    @Select("SELECT * FROM sys_menu")
    List<Menu> loadMenu();
}
